package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.flowerstudy.config.*;
import com.yanqu.road.entity.activity.flowerstudy.data.FlowerStudyUserData;
import com.yanqu.road.entity.activity.flowerstudy.data.FlowerStudyUserWarReport;
import com.yanqu.road.entity.activity.flowerstudy.data.cross.CrossFlowerStudyExamRoomData;
import com.yanqu.road.entity.activity.flowerstudy.data.cross.CrossFlowerStudyExamSessionData;
import com.yanqu.road.entity.activity.flowerstudy.data.cross.CrossFlowerStudyUserExamData;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

public class FlowerStudyBusiness {

    public static boolean addFlowerStudyUserWarReportList(List<FlowerStudyUserWarReport>reportList){
        return DaoHelper.getFlowerStudyExamReportDataDaoImpl().addDataList(reportList);
    }

    public static List<FlowerStudyUserWarReport> getFlowerStudyUserWarReportList(int activityId,long userId){
        return DaoHelper.getFlowerStudyExamReportDataDaoImpl().getFlowerStudyUserWarReportList(activityId,userId);
    }

    public static boolean updateCrossFlowerStudyExamRoomData(CrossFlowerStudyExamRoomData crossFlowerStudyExamRoomData){
        return DaoHelper.getFlowerStudyCrossExamRoomDataDaoImpl().update(crossFlowerStudyExamRoomData);
    }

    public static boolean addCrossFlowerStudyExamRoomData(CrossFlowerStudyExamRoomData crossFlowerStudyExamRoomData){
        return DaoHelper.getFlowerStudyCrossExamRoomDataDaoImpl().add(crossFlowerStudyExamRoomData);
    }

    public static Map<String, CrossFlowerStudyExamRoomData> getCrossFlowerStudyExamRoomDataMap(int activityId, int roomState){
        return DaoHelper.getFlowerStudyCrossExamRoomDataDaoImpl().getCrossFlowerStudyExamRoomDataMap(activityId,roomState);
    }

    public static Map<Integer,Map<Integer,FlowerStudySessionRewardConfig>> getFlowerStudySessionRewardConfigMap(int activityId) {
        return DaoHelper.getFlowerStudyConfigDaoImpl().getFlowerStudySessionRewardConfigMap(activityId);
    }

    public static Map<Integer, CrossFlowerStudyExamSessionData> getCrossFlowerStudyExamSessionDataMap(int activityId){
        return DaoHelper.getFlowerStudyCrossExamSessionDaoImpl().integerCrossFlowerStudyExamSessionDataMap(activityId);
    }

    public static boolean addCrossFlowerStudyExamSessionData(CrossFlowerStudyExamSessionData crossFlowerStudyExamSessionData){
        return DaoHelper.getFlowerStudyCrossExamSessionDaoImpl().add(crossFlowerStudyExamSessionData);
    }

    public static boolean updateCrossFlowerStudyExamSessionData(CrossFlowerStudyExamSessionData crossFlowerStudyExamSessionData){
        return DaoHelper.getFlowerStudyCrossExamSessionDaoImpl().update(crossFlowerStudyExamSessionData);
    }

    public static boolean updateFlowerStudyCrossExamUserData(CrossFlowerStudyUserExamData crossFlowerStudyUserExamData){
        return DaoHelper.getFlowerStudyCrossExamUserDataDaoImpl().update(crossFlowerStudyUserExamData);
    }

    public static boolean addFlowerStudyCrossExamUserData(CrossFlowerStudyUserExamData crossFlowerStudyUserExamData){
        return DaoHelper.getFlowerStudyCrossExamUserDataDaoImpl().add(crossFlowerStudyUserExamData);
    }

    public static Map<Long, CrossFlowerStudyUserExamData> getCrossFlowerStudyUserExamData(int activityId){
        return DaoHelper.getFlowerStudyCrossExamUserDataDaoImpl().getCrossFlowerStudyUserExamDataMap(activityId);
    }

    public static boolean addFlowerStudyUserData(FlowerStudyUserData flowerStudyUserData){
        return DaoHelper.getFlowerStudyUserDataDaoImpl().add(flowerStudyUserData);
    }

    public static boolean updateFlowerStudyUserData(FlowerStudyUserData flowerStudyUserData){
        return DaoHelper.getFlowerStudyUserDataDaoImpl().update(flowerStudyUserData);
    }

    public static FlowerStudyUserData getFlowerStudyUserData(int activityId, long userId){
        return DaoHelper.getFlowerStudyUserDataDaoImpl().getFlowerStudyUserData(activityId, userId);
    }

    public static Map<Integer, FlowerStudyExamQuestionConfig> getFlowerStudyExamQuestionConfigMap(int activityId){
        return DaoHelper.getFlowerStudyConfigDaoImpl().getFlowerStudyExamQuestionConfigMap(activityId);
    }


    public static Map<Integer, FlowerStudyExamConfig> getFlowerStudyExamConfigMap(int activityId) {
        return DaoHelper.getFlowerStudyConfigDaoImpl().getFlowerStudyExamConfigMap(activityId);
    }

    public static Map<Integer, FlowerStudyPoemConfig> getFlowerStudyPoemConfigMap(int activityId){
        return DaoHelper.getFlowerStudyConfigDaoImpl().getFlowerStudyPoemConfigMap(activityId);
    }

    public static List<FlowerStudyTitleConfig> getFlowerStudyTitleConfigList(int activityId){
        return DaoHelper.getFlowerStudyConfigDaoImpl().getFlowerStudyTitleConfigList(activityId);
    }

    public static Map<Integer, FlowerStudyVisitConfig> getFlowerStudyVisitConfigMap(int activityId){
        return DaoHelper.getFlowerStudyConfigDaoImpl().getFlowerStudyVisitConfigMap(activityId);
    }
}
